module.exports = {
  /**
   * Application configuration section
   * http://pm2.keymetrics.io/docs/usage/application-declaration/
   */
  apps: [
    {
      name: 'Live.Socket',
      script: './bin/wwwSocket.js',
      // instances: 0,
      // exec_mode: "cluster",
      watch: false,
      log_date_format: "YYYY-MM-DD HH:mm Z",
      error_file: "/home/logs/live.socket.error.log",
      out_file: "/home/logs/live.socket.out.log",
      combine_logs: true
    },
    {
      name: 'Live.Main',
      script: './bin/wwwMain.js',
      // instances: 0,
      // exec_mode: "cluster",
      watch: false,
      log_date_format: "YYYY-MM-DD HH:mm Z",
      error_file: "/home/logs/live.main.error.log",
      out_file: "/home/logs/live.main.out.log",
      combine_logs: true
    },
    {
      name: 'Live.Admin',
      script: './bin/wwwAdmins.js',
      // instances: 0,
      // exec_mode: "cluster",
      watch: false,
      log_date_format: "YYYY-MM-DD HH:mm Z",
      error_file: "/home/logs/live.admin.error.log",
      out_file: "/home/logs/live.admin.out.log",
      combine_logs: true
    },
    {
      name: 'Live.Interface',
      script: './bin/wwwInterface.js',
      // instances: 0,
      // exec_mode: "cluster",
      watch: false,
      log_date_format: "YYYY-MM-DD HH:mm Z",
      error_file: "/home/logs/live.interface.error.log",
      out_file: "/home/logs/live.interface.out.log",
      combine_logs: true
    },
    {
      name: 'Live.Utils',
      script: './bin/wwwUtils.js',
      // instances: 0,
      // exec_mode: "cluster",
      watch: false,
      log_date_format: "YYYY-MM-DD HH:mm Z",
      error_file: "/home/logs/live.utils.error.log",
      out_file: "/home/logs/live.utils.out.log",
      combine_logs: true
    },
    {
      name: 'Live.Schedule',
      script: './lib/scheduler-service.js',
      // instances: 0,
      // exec_mode: "cluster",
      watch: false,
      log_date_format: "YYYY-MM-DD HH:mm Z",
      error_file: "/home/logs/live.schedule.error.log",
      out_file: "/home/logs/live.schedule.out.log",
      combine_logs: true
    }
  ]
};
